<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding: 0;margin: 0;}
        html,body{
            width: 100%;
            height: 100%;
        }

        .item{
            width: 100%;
            height: 100%;
        }
        .item .title{
            width: 100%;
            height: 700px;
            line-height: 700px;
            color: #fff;
            text-align: center;
            font-size: 40px;
            position: sticky;
            top: 0;
        }
        .item .content{
            width: 100%;
            height: 10000px;
        }
        .blue{
            background-color: blue;
        }
        .green{
            background-color: green;
        }
        .yellow{
            background-color: yellowgreen;
        }
        .content2{
            height: 2000px;
        }
    </style>
</head>
<body>
    
    <div class="container">
        <section>
            <div class="content2 yellow">
                其他内容
            </div>
        </section>
        <section class="item">
            <div class="title blue">第一个页面</div>
            <div class="content"></div>
        </section>
        <section class="item">
            <div class="title green">第二个页面</div>
            <div class="content"></div>
        </section>
        <section>
            <div class="content2 yellow">
                其他内容
            </div>
        </section>
    </div>

    <script>

    </script>
</body>
</html>